<div class="form bootform">

    <?php
    $form = $this->beginWidget('CActiveForm', array(
        'id' => 'bank-branch-form',
        'enableClientValidation' => true,
        'clientOptions' => array('validateOnSubmit' => true),
        'focus' => array($model, 'first_name'),
        'htmlOptions' => array('class' => 'wufoo')
            ));
    ?>
    <header class="info" id="header">
        <h2>Branch Form</h2>

        <div class="alert-message block-message">
            Fields with <span class="required">*</span> are required.
        </div>
    </header>

<?php echo $form->errorSummary($model); ?>
<ul>

<li >
<?php echo $form->labelEx($model, 'bank_id', array('class' => 'desc')); ?>
<div><?php echo $form->dropDownList($model,'bank_id', CHtml::listData(Bank::model()->findAll(), 'id', 'name'), array('empty'=>'Select Bank', 'class'=>'field select medium')); ?><div>
<label class="hint">Choose your bank</label>
<?php echo $form->error($model, 'bank_id'); ?>
</li>
<li >
    <?php echo $form->labelEx($model, 'name', array('class' => 'desc')); ?>
    <div><?php echo $form->textField($model, 'name', array('class' => 'field text medium')); ?></div>
    <?php echo $form->error($model, 'name'); ?>
</li>



<li class="buttons action ">
    <div>
        <?php echo CHtml::submitButton($model->isNewRecord ? 'Submit' : 'Save', array('class' => 'btn primary')); ?>
    </div>
</li>
</ul>
<?php $this->endWidget(); ?>

                </div><!-- form -->